package ku.cat;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class ServicesManager extends BroadcastReceiver {

	private static final String TAG = "CAT";

	@Override
	public void onReceive(Context context, Intent intent) {
		if ((intent.getAction().equals("android.net.conn.CONNECTIVITY_CHANGE"))) {

			// TODO FIXME send data to server with sendDataService
			Log.d(TAG, "connection change");
			// Looper.prepare();
			// Toast.makeText(context, "connection change", Toast.LENGTH_LONG);
			// Looper.loop();
		}

	}

}
